import { Col, Row } from "antd";
import * as React from "react";
import SearchCondition from "./compontents/SearchCondition";
import DeviceTable from "./compontents/DeviceTable";
import "./index.less";

export interface ElectricalSafetyDeviceManageProps {}

export interface ElectricalSafetyDeviceManageState {}

class ElectricalSafetyDeviceManage extends React.Component<
  ElectricalSafetyDeviceManageProps,
  ElectricalSafetyDeviceManageState
> {
  state = { devVal: "" };
  render() {
    return (
      <div className="ElectricalSafetyDeviceManage">
        <Row>
          <Col span={24} style={{ paddingBottom: 12 }}>
            <SearchCondition
              onSubmit={(data: any) => {
                this.setState({ devVal: data.devVal });
              }}
            />
          </Col>
          <Col span={24}>
            <DeviceTable devVal={this.state.devVal} />
          </Col>
        </Row>
      </div>
    );
  }
}

export default ElectricalSafetyDeviceManage;
